<?php
if ($this->session->userdata('logged_in') == TRUE) {
    $this->load->view('view_login_success');
}
?>
<style type="text/css">
    img {
        width: 20px;
    }
</style>
<?php $this->load->view('view_pageheader'); ?>
<div style="padding: 10px 10px;">
    <label style=""><?php echo img('images/1.png'); ?></label>
    <?php foreach ($sql_name as $show) { ?>
        <label style="color: red;">Hi... </label>
        <label><?php echo $show->name; ?></label>
        <label style="color: red;"> | Username : </label>
        <label><?php echo $show->username ?></label>
    <?php } ?>
</div>
<div style="margin-top: 5px; border: #e2e1e1 solid 1px; padding: 10px 10px;">
    <div style="float: left; width: 50px; text-align: right; color: red;">TOP :&nbsp;&nbsp;</div>
    <?php
    foreach ($data as $show) {
        if ($show->position == "top") {
            ?>
       
            <label><?php echo anchor($show->menu_link, $show->menu_name); ?> | </label>
        <?php } ?>
    <?php } // if foreach ?>
</div>
<div style="margin-top: 5px; border: #e2e1e1 solid 1px; padding: 10px 10px;">
    <div style="float: left; width: 50px; text-align: right; color: red;">LEFT :&nbsp;&nbsp;</div>
    <?php
    foreach ($data as $show) {
        if ($show->position == "left") {
            ?>
            <label><?php echo anchor($show->menu_link, $show->menu_name); ?> | </label>
        <?php } ?>
    <?php } // if foreach ?>
</div>
<?php $this->load->view('view_pagefooter'); ?>